<template>
  <view :style="themeColor">
    <view class="page">
      <view class="flex benben-position-layout flex flex-wrap align-center setUp_flex_0"
        :style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
        <view class='flex flex-wrap align-center justify-between flex-sub setUp_fd0_0'>
          <view class='flex flex-wrap align-center setUp_fd0_0_c0' @tap.stop="handleJumpDiy" data-type="back"
            data-url="1">
            <text class='fu-iconfont2  setUp_fd0_0_c0_c0'>&#xE794;</text>
          </view>
          <view class='flex flex-wrap align-stretch justify-center'>
            <text class='setUp_fd0_0_c1_c0'>设置</text>
          </view>
          <view class='flex flex-wrap align-center justify-end setUp_fd0_0_c0'>
          </view>
        </view>

      </view>
      <view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
      <!---flex布局flex布局开始-->
      <view class="flex flex-direction flex-wrap align-stretch benben-flex-layout setUp_flex_1">
        <view class='flex flex-direction flex-wrap align-stretch setUp_fd1_0'>
          <view class='flex flex-wrap align-center justify-between setUp_fd1_0_c0' @tap.stop="clearCacheFunc()">
            <text class='setUp_fd1_0_c0_c0'>清除缓存</text>
            <image class='setUp_fd1_0_c0_c1' mode="aspectFit" :src='STATIC_URL+"12.png"'></image>
          </view>
          <view class='flex flex-wrap align-center justify-between setUp_fd1_0_c0' @click.stop="isZhuxiao=true">
            <text class='setUp_fd1_0_c0_c0'>注销账号</text>
            <view class='flex flex-wrap align-center'>
              <!-- <text class='setUp_fd1_0_c1_c1_c0'>{{appVersion}}</text> -->
              <image class='setUp_fd1_0_c1_c1_c1' mode="aspectFit" :src='STATIC_URL+"12.png"'></image>
            </view>
          </view>
          <view class='flex flex-wrap align-center justify-between setUp_fd1_0_c1' @tap.stop="appUpdateFunc()">
            <text class='setUp_fd1_0_c0_c0'>版本更新</text>
            <view class='flex flex-wrap align-center'>
              <text class='setUp_fd1_0_c1_c1_c0'>{{appVersion}}</text>
              <image class='setUp_fd1_0_c1_c1_c1' mode="aspectFit" :src='STATIC_URL+"12.png"'></image>
            </view>
          </view>
        </view>
      </view>

      <!---flex布局flex布局结束-->
      <benben-popup v-model="popupShow1706193306909" :mask="true" :mask-close-able="true" mode='center' :z-index='999'>
        <!---退出登录flex布局开始-->
        <view class="flex benben-flex-layout flex-wrap align-center">
          <view class='flex flex-direction flex-wrap align-center setUp_fd2_0'>
            <text class='setUp_fd2_0_c0'>提示</text>
            <text class='setUp_fd2_0_c1'>确定退出当前帐号？</text>
            <view class='flex align-center setUp_fd2_0_c2'>
              <button class='setUp_fd2_0_c2_c0' @tap.stop="popupShow1706193306909=false">取消</button>
              <button class='setUp_fd2_0_c2_c1' @tap.stop="logOutFunc()">确认</button>
            </view>
          </view>
        </view>

        <!---退出登录flex布局结束-->

      </benben-popup>
      <benben-popup v-model="popupShow1706193797607" :mask="true" :mask-close-able="false" mode='center'>
        <!---清除本地缓存flex布局开始-->
        <view class="flex benben-flex-layout flex-wrap align-center">
          <view class='flex flex-direction flex-wrap align-center setUp_fd3_0'>
            <text class='setUp_fd3_0_c0'>提示</text>
            <text class='setUp_fd3_0_c1'>确定清除本地缓存？</text>
            <view class='flex align-center setUp_fd3_0_c2'>
              <button class='setUp_fd3_0_c2_c0' @tap.stop="popupShow1706193797607=false">取消</button>
              <button class='setUp_fd3_0_c2_c1' @tap.stop="clearCacheFunc()">确认</button>
            </view>
          </view>
        </view>

        <!---清除本地缓存flex布局结束-->

      </benben-popup>
      <benben-popup v-model="isZhuxiao" :mask="true" :mask-close-able="true" mode='center' :z-index='999'>
        <!---退出登录flex布局开始-->
        <view class="flex benben-flex-layout flex-wrap align-center">
          <view class='flex flex-direction flex-wrap align-center setUp_fd2_0'>
            <text class='setUp_fd2_0_c0'>提示</text>
            <text class='setUp_fd2_0_c1'>确定注销该账号吗？</text>
            <view class='flex align-center setUp_fd2_0_c2'>
              <button class='setUp_fd2_0_c2_c0' @tap.stop="isZhuxiao=false">取消</button>
              <button class='setUp_fd2_0_c2_c1' @tap.stop="logOutFunc()">确认</button>
            </view>
          </view>
        </view>

        <!---退出登录flex布局结束-->

      </benben-popup>
      <benben-popup v-model="popupShow1706193150871" :mask="true" :mask-close-able="true" mode='center' :z-index='999'>
        <!---版本更新flex布局开始-->
        <view class="flex flex-direction flex-wrap align-center benben-flex-layout setUp_flex_4">
          <text>提示</text>
          <text class='setUp_fd4_1'>当前为最新版本!</text>
        </view>

        <!---版本更新flex布局结束-->

      </benben-popup>
      <!---flex布局flex布局开始-->
      <view class="flex benben-flex-layout flex-wrap align-center setUp_flex_5" @tap.stop="popupShow1706193306909=true">
        <button class='setUp_fd5_0'>退出登录</button>
      </view>

      <!---flex布局flex布局结束-->
      <app-update ref="update"></app-update>


    </view>
  </view>
</template>
<script>
  export default {
    components: {},


    data() {
      return {
        isZhuxiao: false,
        "popupShow1706193150871": false,
        "popupShow1706193797607": false,
        "popupShow1706193306909": false
      };
    },
    computed: {
      themeColor() {
        return this.$store.getters.themeColor
      },
      appVersion() {
        // 获取版本号
        return this.$store.state.appVersion
      }
    },
    watch: {},
    onLoad(options) {

    },
    onUnload() {

    },
    onReady() {

    },
    onShow() {
      this.$store.dispatch('getAppVersion') // 更新版本号
    },
    onHide() {

    },
    onResize() {

    },
    onPullDownRefresh() {

    },
    onReachBottom(e) {

    },
    onPageScroll(e) {

    },
    methods: {
      //版本更新
      appUpdateFunc() {
        this.$util.debounce(
          () => {
            this.$refs.update.checkAppUpdate()
          },
          1000,
          true
        )
        // this.popupShow1706193150871 = true;
      },
      //清除缓存
      clearCacheFunc() {
        this.$store.dispatch('appClearCache')
        this.popupShow1706193797607 = false;
      },
      //退出登录
      logOutFunc() {
        this.$store.commit('logout')
        this.popupShow1706193306909 = false;
        this.toLoginDiy();
      }
    }
  };
</script>
<style lang="scss" scoped>
  .page {
    width: 100vw;
    overflow-x: hidden;
    min-height: calc(100vh - var(--window-bottom));
    background: rgba(248, 248, 250, 1);
    background-size: 100% auto;
  }

  .setUp_flex_0 {
    background: #fff;
    width: 750rpx;
    height: 88rpx;
    overflow: hidden;
    z-index: 10;
    top: 0rpx;
    background-size: 100% auto !important;
  }

  .setUp_fd0_0_c1_c0 {
    font-size: 36rpx;
    font-weight: 700;
    color: #333333;
    line-height: 50rpx;
  }

  .setUp_fd0_0_c0_c0 {
    font-size: 36rpx;
    color: #333;
  }

  .setUp_fd0_0_c0 {
    width: 120rpx;
  }

  .setUp_fd0_0 {
    padding: 0rpx 32rpx 0rpx 32rpx;
  }

  .setUp_flex_1 {
    padding: 24rpx 30rpx 0rpx 30rpx;
  }

  .setUp_fd1_0_c1_c1_c1 {
    width: 12rpx;
    height: 20rpx;
    border-radius: 0rpx 0rpx 0rpx 0rpx;
    margin: 0rpx 0rpx 0rpx 16rpx;
  }

  .setUp_fd1_0_c1_c1_c0 {
    color: #878787;
    font-size: 32rpx;
    font-weight: 400;
    line-height: 32rpx;
  }

  .setUp_fd1_0_c1 {
    padding: 32rpx 0rpx 32rpx 0rpx;
  }

  .setUp_fd1_0_c0_c1 {
    width: 12rpx;
    height: 20rpx;
    border-radius: 0rpx 0rpx 0rpx 0rpx;
  }

  .setUp_fd1_0_c0_c0 {
    color: #333333;
    font-size: 32rpx;
    font-weight: 400;
    line-height: 32rpx;
  }

  .setUp_fd1_0_c0 {
    border-bottom: 1px solid #eee;
    padding: 32rpx 0rpx 32rpx 0rpx;
  }

  .setUp_fd1_0 {
    background: rgba(255, 255, 255, 1);
    border-radius: 16rpx;
    background-size: 100% auto;
    padding: 0rpx 24rpx 0rpx 24rpx;
  }

  .setUp_fd2_0_c2_c1 {
    background: var(--benbenbgColor1);
    font-size: 32rpx;
    color: rgba(37, 104, 174, 1);
    width: 270rpx;
    height: 101rpx;
    line-height: 101rpx;
    font-weight: 500;
  }

  .setUp_fd2_0_c2_c0 {
    border-right: 1px solid #eee;
    background: #fff;
    font-size: 32rpx;
    color: rgba(153, 153, 153, 1);
    width: 270rpx;
    height: 101rpx;
    line-height: 101rpx;
    font-weight: 400;
  }

  .setUp_fd2_0_c2 {
    border-top: 1px solid #eee;
    margin: 51rpx 0rpx 0rpx 0rpx;
  }

  .setUp_fd2_0_c1 {
    line-height: 44rpx;
    font-size: 32rpx;
    font-weight: 500;
    color: #333333;
    text-align: center;
    margin: 32rpx 40rpx 0rpx 40rpx;
  }

  .setUp_fd2_0_c0 {
    line-height: 44rpx;
    font-size: 36rpx;
    font-weight: 700;
    color: #333333;
    margin: 40rpx 0rpx 0rpx 0rpx;
  }

  .setUp_fd2_0 {
    background: #fff;
    width: 540rpx;
    background-size: 100% auto !important;
    border-radius: 16rpx 16rpx 16rpx 16rpx;
  }

  .setUp_fd3_0_c2_c1 {
    background: var(--benbenbgColor1);
    font-size: 32rpx;
    color: rgba(37, 104, 174, 1);
    width: 270rpx;
    height: 101rpx;
    line-height: 101rpx;
    font-weight: 500;
  }

  .setUp_fd3_0_c2_c0 {
    border-right: 1px solid #eee;
    background: #fff;
    font-size: 32rpx;
    color: rgba(153, 153, 153, 1);
    width: 270rpx;
    height: 101rpx;
    line-height: 101rpx;
    font-weight: 400;
  }

  .setUp_fd3_0_c2 {
    border-top: 1px solid #eee;
    margin: 51rpx 0rpx 0rpx 0rpx;
  }

  .setUp_fd3_0_c1 {
    line-height: 44rpx;
    font-size: 32rpx;
    font-weight: 500;
    color: #333333;
    text-align: center;
    margin: 32rpx 40rpx 0rpx 40rpx;
  }

  .setUp_fd3_0_c0 {
    line-height: 44rpx;
    font-size: 36rpx;
    font-weight: 700;
    color: #333333;
    margin: 40rpx 0rpx 0rpx 0rpx;
  }

  .setUp_fd3_0 {
    background: #fff;
    width: 540rpx;
    background-size: 100% auto !important;
    border-radius: 16rpx 16rpx 16rpx 16rpx;
  }

  .setUp_flex_4 {
    background: rgba(255, 255, 255, 1);
    width: 540rpx;
    border-radius: 16rpx;
    background-size: 100% auto;
    padding: 40rpx 0rpx 40rpx 0rpx;
  }

  .setUp_fd4_1 {
    margin: 32rpx 0rpx 0rpx 0rpx;
  }

  .setUp_flex_5 {
    position: fixed;
    bottom: calc(40rpx + var(--window-bottom));
    left: 32rpx;
  }

  .setUp_fd5_0 {
    background: rgba(37, 104, 174, 1);
    border-radius: 44rpx;
    width: 686rpx;
    line-height: 88rpx;
    font-size: 34rpx;
    color: #fff;
  }
</style>
